import request from '@/utils/request'
// 获取车牌接口
export function getPlates() {
  return request({
    url: 'getPlates/',
    method: 'get'
  })
}
// 根据条件获取车牌接口
export function getPlatesByCarplate(carplate) {
  return request({
    url: `getCarplatesByCarplate/${carplate}`,
    method: 'get'
  })
}
// 根据条件获取单个车牌接口
export function getPlateByCarplate(carplate) {
  return request({
    url: `getCarplateByCarplate/${carplate}`,
    method: 'get'
  })
}
// 删除车牌接口
export function deletePlate(carplate) {
  return request({
    url: `deletePlate/${carplate}/`,
    method: 'delete'
  })
}

// 更新车牌接口
export function updatePlate(carplate, data) {
  return request({
    url: `updatePlate/${carplate}/`,
    method: 'put',
    data
  })
}

